<?php
namespace Wechat\Controller;

use \Michelf\MarkdownExtra;

class AjaxBaseController extends \Think\Controller {
	protected function resp($data, $info ='', $code = 0) {
		$return = ['code' => $code, 'info' => $info];
		if (!empty($data)) {
			$return['data'] = $data;
		}
		$this->ajaxReturn($return);
	}
}